import requests

# r=requests.get("https://www.baidu.com")
#
# #打印状态码
# print(r.status_code)
#
# #响应体
# print(r.text)
#
# #响应头
# print(r.headers)

get=requests.get("https://www.baidu.com")
post=requests.post("https://www.baidu.com")

#传递参数时指定参数
req_get=requests.request(method="GET",url="https://www.baidu.com")
req_post=requests.request(method="POST",url="https://www.baidu.com")

print("get:",get)
print("post:",post)
print("req_get:",req_get)
print("req_post:",req_post)
